import { createRouter, createWebHistory } from 'vue-router';

import { appRoutes } from './routes';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: () => import('@/views/category/index.vue'),
    },
    ...appRoutes,
  ],
  scrollBehavior() {
    return { top: 0 };
  },
});


export default router;
